<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>面向对象</title>
	</head>
	<body>
	</body>
	<script>
		function objectss(number,car,lingj,instructions){
			this.number = number;
			this.car = car;
			this.lingj = lingj;
			this.instructions = instructions;
			this.macks = function(){
				document.write(`这是我造的其中${this.number}辆,它的出厂证明是${this.car}的    ${this.lingj}是10000元,  这是一辆 ${this.instructions}车`);
			}
			
			
			
		}
		
		var cars = new objectss("一","合格","建议零售价","谁都不敢坐的");
		
		cars.macks()
	</script>
</html>
